import SERVICE_ADDRESS from "./common";
const API_URL = SERVICE_ADDRESS.QM;
const BD = SERVICE_ADDRESS.BD;
// 质量管理接口集

// 公共
const MATERIAL_QUERY = BD + "/v1/material/queryGeneralMaterial"; // 物料通用查询
const UNIT_QUERY = BD + "/v1/measureUnit"; // 单位通用查询
const PACKSIZE_QUERY = BD + "/v1/packSize"; // 包装规格通用查询
const CODERULE_QUERY = BD + "/v1/codeRule/list"; // 编码规则通用查询
const STANDARD_QUERY = API_URL + "/v1/inspectStandard/getData"; // 质检标准通用查询

// 检验项目
const API_PROJECT_QUERY = API_URL + "/v1/inspectItem/pageQuery"; // 检验项目查询
const API_PROJECT_ADD = API_URL + "/v1/inspectItem/save"; // 新增检验项目
const API_PROJECT_EDIT = API_URL + "/v1/inspectItem/update"; // 修改检验项目
const API_PROJECT_DELETE = API_URL + "/v1/inspectItem/delete"; // 删除检验项目

// 检验标准
const API_STANDARD_QUERY = API_URL + "/v1/inspectStandard/pageQuery"; // 检验标准查询
const API_STANDARD_ADD = API_URL + "/v1/inspectStandard/save"; // 检验标准
const API_STANDARD_EDIT = API_URL + "/v1/inspectStandard/update"; // 修改检验标准
const API_STANDARD_DELETE = API_URL + "/v1/inspectStandard/delete"; // 删除检验标准

// 样品管理
const API_SAMPLE_QUERY = API_URL + "/v1/samplingRecord/pageQuery"; // 查询list
const API_SAMPLE_ADD = API_URL + "/v1/samplingRecord/save"; // 新增
const API_SAMPLE_EDIT = API_URL + "/v1/samplingRecord/update"; // 修改
const API_SAMPLE_CONFIRM = API_URL + "/v1/samplingRecord/confirm"; // 确认
const API_SAMPLE_DELETE = API_URL + "/v1/samplingRecord/delete"; // 删除

// 检验任务
const API_TASK_QUERY = API_URL + "/v1/inspectTask/pageQuery"; // 查询list
const API_TASK_VIEW = API_URL + "/v1/inspectTask/view"; // 查询单个检验任务
const API_TASK_ADD = API_URL + "/v1/inspectTask/save"; // 新增
const API_TASK_EDIT = API_URL + "/v1/inspectTask/updateTask"; // 修改
const API_TASK_CONFIRM = API_URL + "/v1/inspectTask/confirmTask"; // 确认
const API_TASK_DELETE = API_URL + "/v1/inspectTask/delete"; // 删除
const API_TASK_SUBMIT = API_URL + "/v1/inspectTask/submit"; // 提交
const API_TASK_STOP = API_URL + "/v1/inspectTask/stop"; // 中止
const API_TASK_REVIEW = API_URL + "/v1/inspectTask/review"; // 复检
const API_TASK_STANDARD = API_URL + "/v1/inspectStandard/getData"; // 检验标准查询
// 检验任务详情
const API_TASK_DETAIL_STARTUP = API_URL + "/v1/inspectTaskDetail/startUp"; // 启动
const API_TASK_DETAIL_ENTRY = API_URL + "/v1/inspectTaskDetail/entry"; // 录入
const API_TASK_DETAIL_SUBMIT = API_URL + "/v1/inspectTaskDetail/submit"; // 提交


export default {

    MATERIAL_QUERY,
    UNIT_QUERY,
    PACKSIZE_QUERY,
    CODERULE_QUERY,
    STANDARD_QUERY,

    API_PROJECT_QUERY,
    API_PROJECT_ADD,
    API_PROJECT_EDIT,
    API_PROJECT_DELETE,

    API_STANDARD_QUERY,
    API_STANDARD_ADD,
    API_STANDARD_EDIT,
    API_STANDARD_DELETE,

    API_SAMPLE_QUERY,
    API_SAMPLE_ADD,
    API_SAMPLE_EDIT,
    API_SAMPLE_CONFIRM,
    API_SAMPLE_DELETE,

    API_TASK_QUERY,
    API_TASK_VIEW,
    API_TASK_ADD,
    API_TASK_EDIT,
    API_TASK_CONFIRM,
    API_TASK_DELETE,
    API_TASK_SUBMIT,
    API_TASK_STOP,
    API_TASK_REVIEW,
    API_TASK_STANDARD,
    API_TASK_DETAIL_STARTUP,
    API_TASK_DETAIL_ENTRY,
    API_TASK_DETAIL_SUBMIT
};